<%@ page contentType="text/html" %>
<%@ taglib prefix="c"      uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt"    uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn"     uri="http://java.sun.com/jsp/jstl/functions" %>
<%
  String localeImg = "";
  String locale = request.getLocale().toString();
  if ("zh".equals(locale) || "zh_CN".equals(locale)) {
    localeImg = "zh/";
  } else if ("zh_HK".equals(locale) || "zh_TW".equals(locale)) {
    localeImg = "zh/TW/";
  } /* else {
    if ("".equals(locale) || "en".equals(locale) || "en_US".equals(locale)) {
      localeImg = "";
    }
  } */
%>
<c:set var="localeImg" value="<%=localeImg%>" />
<fmt:requestEncoding value="UTF-8" />
<fmt:setLocale value="<%=locale%>" />
<fmt:setBundle basename="messages" />    
<html><head><title><fmt:message key="title"/></title>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<META HTTP-EQUIV="Cache-Control" CONTENT="max-age=0">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
<meta http-equiv="expires" content="0">
<META HTTP-EQUIV="Expires" CONTENT="Tue, 01 Jan 1980 1:00:00 GMT">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
</head>

<body bgcolor="white">

<table background="../images/bkg-topbar.gif" border="0" cellspacing="0" cellpadding="5" width="100%">
  <tbody>
  <tr>
    <td><a href="<c:url value="/shop/index.do"/>"><img border="0" src="../images/<c:out value='${localeImg}' />logo-topbar.gif" /></a></td>
    <td align="right"><a href="<c:url value="/shop/viewCart.do"/>"><img border="0" name="img_cart" src="../images/cart.gif" /></a>
      <img border="0" src="../images/separator.gif" />

<c:if test="${empty userSession.account}" >
      <a href="<c:url value="/shop/signonForm.do"/>"><img border="0" name="img_signin" src="../images/<c:out value='${localeImg}' />sign-in.gif" /></a>
</c:if>

<c:if test="${!empty userSession.account}" >
      <a href="<c:url value="/shop/signoff.do"/>"><img border="0" name="img_signout" src="../images/<c:out value='${localeImg}' />sign-out.gif" /></a>
      <img border="0" src="../images/separator.gif" />
      <a href="<c:url value="/shop/editAccount.do"/>"><img border="0" name="img_myaccount" src="../images/<c:out value='${localeImg}' />my_account.gif" /></a>
</c:if>

      <img border="0" src="../images/separator.gif" /><a href="../help.jsp"><img border="0" name="img_help" src="../images/help.gif" /></a>
    </td>
    <td align="left" valign="bottom">
      <form action="<c:url value="/shop/searchProducts.do"/>" method="post">
			  <input type="hidden" name="search" value="true"/>
        <input name="keyword" size="14" />&nbsp;<input border="0" src="../images/<c:out value='${localeImg}' />search.gif" type="image"/>
      </form>
    </td>
  </tr>
  </tbody>
</table>

<%@ include file="IncludeQuickHeader.jsp" %>
